#ifndef __ADCcidei4550_H
#define __ADCcidei4550_H

void CloseADC (void);

/* BusyADC
 * Check status of A/D conversion; returns 1 if busy converting; 0 otherwise
 */

/* Parameters:
 lo abre con los valores de justificacion
 */
void OpenADC (void);
/* Stores the result of an A/D conversion. */
union ADCResult
{
 int lr;
 char br[2];
};

/* ConvertADC
 * Start an A/D conversion
 */
void ConvertADC (void);

/* ReadADC
 * Read A/D result
 */
int ReadADC (void);

/* BusyADC
 * Check status of A/D conversion; returns 1 if busy converting; 0 otherwise
 */
char BusyADC (void);

#endif//#ifndef __ADCcidei4550_H
